home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************
-
- Hub's Drop Shell 1.0
- ©Copyright 1995, Hubert Figuière, All right reserved.
-
- HDSdefinitions.c
-
- January 29th 1995
-
- Author :
- Hubert Figuière HF
-
- Purpose :
- defines all the globals (as external) and constants.
- 01/29/95
- -First implementation (HF)
- 03/18/95
- -Modified for Painted Black (HF)
-
- *****************************************************************************/
-
- #ifndef __HDSDEFINITIONS__
- #define __HDSDEFINITIONS__
-
- #include "MacDefines.h"
-
-
- #define kAboutDLOGID 128 //ID of the about box dialog
- #define kErrorALRTID 129 //ID of alert ressource for an error
-
- #define kStringsID 128 //ID of the STR# resource containing the error strings
- #define kGestaltErrNum 1 //num of gestalt error string in STR# resource
-
- #define APPLTYPE 'APPL' //generic type for applications
-
-
- #define EVTMASK highLevelEventMask+mDownMask+keyDownMask+osMask //event mask
- #define IDLETIME 60 //60 ticks of idle time while events are not pending
-
- extern Boolean finished; //nothing else to do
- extern short gDrag_n_drop; //<0 if application was launched instead of D n D
-
- #define MENUNUM 2 //number of menus
- #define MAPPLEID 128
- #define MFILEID 129
-
- #define MFileOpen 1
- //-----------------------
- #define MFileQuit 3
-
- extern MenuHandle menus[MENUNUM]; //menus in menubar
-
- //functions prototypes of functions implemented in HDSmain.c
- void init();
- OSErr do_it_no_param(); //do_it() without any parameter.
- void dispose_application();
- void display_error (short, OSErr);
- void do_about();
- void handle_os_event(EventRecord*);
- void handle_key(EventRecord*);
- void handle_menus(long);
- void handle_mousedown(EventRecord*);
- void main();
-
-
- #endif
-